package GUI;

import java.awt.*;


import javax.swing.*;
/**
 * This class creates instance of AuthrizationGui	
 * to display when needed
 * @author Nofar
 *
 */
public class AuthorizationGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JButton addNewButton;
	private JButton updateButton;
	private JButton Cancelbutton;

	/**
	 * the constructor
	 */
	public AuthorizationGui(){
		super();
		addNewButton = new JButton("add new user");
		updateButton = new JButton("update authorization");
		Cancelbutton = new JButton("cancel");
		initialize();
	}
	/**
	 * This method initializes AuthrizationGui	
	 */
	public void initialize(){
		JLabel lblIcmSystem = new JLabel("authorization managment window");
		lblIcmSystem.setForeground(Color.BLUE);
		lblIcmSystem.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblIcmSystem.setBounds(65, 30, 362, 50);
		add(lblIcmSystem);
		
		addNewButton.setFont(new Font("Arial", Font.PLAIN, 12));
		addNewButton.setBounds(138, 106, 193, 50);
		add(addNewButton);
		
		updateButton.setFont(new Font("Arial", Font.PLAIN, 12));
		updateButton.setBounds(138, 190, 193, 50);
		add(updateButton);
		
		setLayout(null);
		setSize(new Dimension(500, 367));
		
		Cancelbutton.setFont(new Font("Tahoma", Font.BOLD, 13));
		Cancelbutton.setBounds(10, 323, 124, 33);
		add(Cancelbutton);
	}
	
	/**
	 * 
	 * @return JButton the Add new user button
	 */
	public JButton getAddNewButton(){
		return addNewButton;
	}
	/**
	 * 
	 * @return JButton the update authorization button
	 */
	public JButton getUpdateButton(){
		return updateButton;
	}
	/**
	 * 
	 * @return JButton the cancel button
	 */
	public JButton getCancelbutton() {
		return Cancelbutton;
	}

	/**
	 * 
	 * @param cancelbutton to set the Cancel button
	 */
	public void setCancelbutton(JButton cancelbutton) {
		Cancelbutton = cancelbutton;
	}
	/**
	 * 
	 * @param addNewButton to set the add new user button
	 */
	public void setAddNewButton(JButton addNewButton) {
		this.addNewButton = addNewButton;
	}
	/**
	 * 
	 * @param updateButton  to set the update button
	 */
	public void setUpdateButton(JButton updateButton) {
		this.updateButton = updateButton;
	}
}
